package com.qf.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class SpringSecurityUtil {


    //根据明文，生成密文，对密码进行加密
    public static String getEncodePassword(String password){
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        return encoder.encode(password);
    }
}
